<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="bean.Donate"%>
<%@page import="bean.Funding_information"%>
<%@page import="bean.Fundraising_project"%>
<%@page import="bean.Campus_construction"%>

<html>
	<head>
		<link rel="shortcut icon" href="images/titleico.ico" />
		<link href="css/myA.css" type="text/css" rel="stylesheet">
		<link href="css/myCss.css" type="text/css" rel="stylesheet"/>
	</head>

	<body>
		<%
			String oid2 = request.getParameter("oid");
			ArrayList<Donate> donate_list = (ArrayList<Donate>) session
					.getAttribute("donate_list");
			ArrayList<Funding_information> funding_information_list = (ArrayList<Funding_information>) session
					.getAttribute("funding_information_list");
			ArrayList<Fundraising_project> fundraising_project_list = (ArrayList<Fundraising_project>) session
					.getAttribute("fundraising_project_list");
			ArrayList<Campus_construction> campus_construction_list = (ArrayList<Campus_construction>) session
					.getAttribute("campus_construction_list");

			if (donate_list == null) {
				response.sendRedirect("donate?page=optionlist.jsp?oid="+oid2);
			} else if (funding_information_list == null) {
				response.sendRedirect("funding_information?page=optionlist.jsp?oid="+oid2);
			} else if (fundraising_project_list == null) {
				response.sendRedirect("fundraising_project?page=optionlist.jsp?oid="+oid2);
			} else if (campus_construction_list == null) {
				response.sendRedirect("campus_construction?page=option.jsp");
			}
		%>
	
		<jsp:include page="top.jsp"></jsp:include>
		<table width="960" border="0" cellpadding="0" cellspacing="0"
			align="center">
			<tr>
				<td width="298">
					<jsp:include page="leftshow.jsp"></jsp:include>
				</td>
				<td width="22">
					&nbsp;
				</td>
				<td width="640" valign="top">
					<%
						String oid = request.getParameter("oid");
						if ("1".equals(oid)) {
					%>
						<jsp:include page="optionlist1.jsp"></jsp:include>
					<%
						}
						else if ("2".equals(oid)) {
					%>
						<jsp:include page="optionlist2.jsp"></jsp:include>
					<%
						}	
						//else if ("3".equals(oid)) {
					%>
<!--						<jsp:include page="optionlist3.jsp"></jsp:include>-->
					<%
						//}
						
					%>
				</td>
			</tr>
		</table>
		
		<%
			if(donate_list != null && fundraising_project_list != null && funding_information_list != null && campus_construction_list != null) {
				session.removeAttribute("donate_list");
				session.removeAttribute("campus_construction_list");
				session.removeAttribute("fundraising_project_list");
				session.removeAttribute("funding_information_list");
			}
		%>
		
	</body>
</html>
